<?php

namespace App\Common;


class Enum
{
    //  短信模板
    const MSG_TEMPLATE = [
        'apply_to_city' => ['template_id' => 'SMS_237206476', 'variable' => ['name', 'time']],  //  申请成功通知城市总
        'apply_to_consumer' => ['template_id' => 'SMS_237206477', 'variable' => ['name', 'time']],  //  申请成功通知消费者
        'boss_apply_to_salesman' => ['template_id' => 'SMS_238135684', 'variable' => ['time']],  //  申请成功通知业务员
        'modify_address_pass' => ['template_id' => 'SMS_237211519', 'variable' => ['time']],  //  修改宴席地址审核通过
        'modify_address_refuse' => ['template_id' => 'SMS_237206482', 'variable' => ['time']],  //  修改宴席地址审核拒绝
        'relay_order' => ['template_id' => 'SMS_237591493', 'variable' => ['salesman_name', 'time']],    //  被转单业务员
        'agree_order' => ['template_id' => 'SMS_237211522', 'variable' => ['time', 'salesman_name']],    //  业务员同意接单
        'refuse_order' => ['template_id' => 'SMS_237201534', 'variable' => ['time', 'salesman_name']],   //  业务员拒绝接单
        'audit_to_boss' => ['template_id' => 'SMS_237216462', 'variable' => ['time']],  //  运营审核通过通知店老板
        'audit_to_salesman_in' => ['template_id' => 'SMS_237206487', 'variable' => ['time']],  //  运营审核通过通知内部业务员
        'audit_to_salesman_out' => ['template_id' => 'SMS_237206493', 'variable' => ['time']],  //  运营审核通过通知外部业务员
        'audit_to_agent' => ['template_id' => 'SMS_238150736', 'variable' => ['name', 'time']],  //  运营审核通过通知上级经销商
        'audit_refuse_to_boss' => ['template_id' => 'SMS_237201542', 'variable' => ['time']],  //  运营审核拒绝通知店老板
        'audit_refuse_to_salesman' => ['template_id' => 'SMS_237211533', 'variable' => ['time']],  //  运营审核拒绝通知接单业务员
        'audit_refuse_to_agent' => ['template_id' => 'SMS_238150743', 'variable' => ['name', 'time']],  //  运营审核拒绝通知上级经销商
    ];

    //  拒绝原因类型
    const REFUSE_REASON = [
        'salesman_audit_init' => 'SALESMAN_AUDIT_INIT',       //  业务员初审
        'city_owner_audit_init' => 'CITY_OWNER_AUDIT_INIT',     //  城市总初审
        'city_owner_audit_video' => 'CITY_OWNER_AUDIT_VIDEO',       //  城市总视频审核
        'operate_mid' => 'OPERATE_MID',     //  运营中台
    ];

    //  初审状态
    const AUDIT_INIT_STATUS = ['AUDIT_AGREE' => "审核通过", 'AUDIT_REFUSE' => "审核拒绝"];

    //  初审记录节点
    const AUDIT_INIT_NODE = ['SALEMAN' => '业务员', 'CITY_OWNER' => '城市总'];

    //  初审记录提报人类型
    const AUDIT_INIT_SUBMIT_TYPE = ['POINT' => '店老板', 'SALEMAN' => '业务员'];

    //  宴席类型
    const BANQUET_TYPE = [
        ['type' => 'WEDDING', 'text' => '婚宴'],
        ['type' => 'BIRTHDAY', 'text' => '生日宴'],
        ['type' => 'ENTRANCE', 'text' => '升学宴'],
        ['type' => 'FUNERAL', 'text' => '丧宴'],
        ['type' => 'FAMILY', 'text' => '家庭聚餐'],
        ['type' => 'FRIEND', 'text' => '朋友聚餐'],
        ['type' => 'BUSINESS', 'text' => '商务宴请'],
        ['type' => 'FULLMOON', 'text' => '满月宴/百日宴'],
        ['type' => 'BEENGAGED', 'text' => '订婚宴'],
        ['type' => 'HOUSEWARMING', 'text' => '乔迁宴'],
    ];

    //菜单
    const MENU_LIST = ['banquet' => '宴席管理', 'stock' => '进货', 'scan_receive' => '扫码收货'];

    //网点类型对应身份 STORE 烟酒店 GROUP_AGENT 团购经销商 TASTE_STORE 内行品鉴店 AGENT 全渠道经销商
    const POINT_ROLE_LIST = [
        'AGENT' => 'channel',
        'GROUP_AGENT' => 'group',
        'TASTE_STORE' => 'taste',
        'STORE' => 'point',
    ];

    //查询状态
    const SEARCH_LIST = [
        'apply' => '可申请宴席',
        'initAudit' => '待审批',
        'initAuditRefused' => '审批拒绝',
        'toReceive' => '待接单',
        'toExecute' => '待开宴',
        'executed' => '已开宴',
        'toAudit' => '待运营审核',
        'auditAgree' => '审核通过',
        'auditRefuse' => '审核拒绝',
        'videoAudit' => '待审核视频',
        'paid' => '已赔付',
    ];

    //大潭酒SKU
    const BIGWINE_SKU = 5923;

    //来源对应校角色
    const ORIGIN_ROLE = [
        'salesman' => 'salesman', //业务员小程序
        'tan_home' => 'point',    //潭酒之家
    ];

    //终审拒绝
    const AUDIT_REASON = [
        ['type' => 'TABLE_ERROR', 'value' => '桌数不准'],
        ['type' => 'LACK_OF_PEOPLE', 'value' => '缺少人/菜/酒'],
        ['type' => 'NOT_MATCH_TYPE', 'value' => '与宴席类型对不上'],
        ['type' => 'NOT_NUMBER_OF_BOOTHS', 'value' => '没有口播数桌数'],
        ['type' => 'NOT_CLEAR_ENOUGH', 'value' => '拍摄不够清晰'],
        ['type' => 'NOT_FULLY_PHOTO', 'value' => '未将宴席氛围拍摄全'],
        ['type' => 'OTHER', 'value' => '其他原因'],
    ];

    //banquet_verify_log验证类型
    const VERIFY_TYPE = [
        ['id' => 'VALIDWINE_QRCODE', 'name' => '宴席验酒']
    ];

    //banquet_exposure_rating风险点
    const RISK_POINT = [
        ['id' => 'BANQUET_TIME_SEQUENCE', 'name' => '宴席日期连续', 'field' => 'banquetStartTime'],
        ['id' => 'BANQUET_TIME_SAME', 'name' => '宴席时间(相同)', 'field' => 'banquetStartTime'],
        ['id' => 'BANQUET_ADDRESS_SAME', 'name' => '宴席地点(相同)', 'field' => 'address'],
        ['id' => 'BANQUET_EXECUTE_SAME', 'name' => '执行人(相同)', 'field' => 'salemanName'],
        ['id' => 'ORDER_POINT_SAME', 'name' => '下单网点(相同)', 'field' => 'pointName'],
        ['id' => 'ORDER_USER_SAME', 'name' => '下单人(相同)', 'field' => 'orderUnionid'],
        ['id' => 'APPLICANT_PHONE_SAME', 'name' => '领酒验证手机号(相同)', 'field' => 'buyerMobile'],
        ['id' => 'RECEIVER_SAME', 'name' => '实际领酒人(相同)', 'field' => 'getWineUnionid'],
    ];

    //banquet_exposure_rating风险场景
    const RISK_SCENE = [
        ['id' => 'SALESMAN_RECEIVE', 'name' => '业务员领酒'],
        ['id' => 'SUBMIT_AUDIT', 'name' => '提交审核'],
        ['id' => 'APPEAL_ONE', 'name' => '申诉'],
    ];

    //风险类型
    const RISK_TYPE = [
        ['id' => 'RUNNING_WATER_BANQUET', 'name' => '疑似流水席'],
        ['id' => 'REPEAT_BANQUET', 'name' => '疑似重复宴席'],
    ];
}